package org.compactmvc.demo.controller
{
	import org.compactmvc.demo.model.ApplicationModel;
	import org.compactmvc.demo.model.MainViewModel;
	import org.compactmvc.patterns.Command;
	import org.compactmvc.patterns.Controller;
	import org.compactmvc.vo.NoteVO;
	
	public final class ButtonClickedCommand extends Command
	{
		[Inject]
		public var viewModel:MainViewModel;
		
		public function ButtonClickedCommand(controller:Controller)
		{
			super(controller);
		}
		
		override public function execute(note:NoteVO):void
		{
			viewModel.removeButton();
		}
		
		
	}
}